(function ()
{
    "use strict";

    function getValueOfFirstInputOfColorType()
    {
        var firstInputOfColorType = document.querySelector('input[type="color"]');
        var colorValue = firstInputOfColorType.value;

        return colorValue;
    }

    function setBodyBackgroundColor(value)
    {
        document.body.style.background = value;
    }

    setBodyBackgroundColor(getValueOfFirstInputOfColorType());
}());